import { BasicPageParams, BasicFetchResult } from '@/api/model/baseModel';
/**
 * @description: Request list interface parameters
 */
export type GoodsParams = Partial<BasicPageParams>;

export interface GoodsListItem {
  id: string;
  name: string;
  goodsType: number;
  description: string;
  bigImg: string;
  imgList: string[];
  creatorName: string;
  status: number;
  content: string;
  hot: boolean;
  spe: boolean;
}

/**
 * @description: Request list return value
 */
export type GoodsListGetResultModel = BasicFetchResult<GoodsListItem>;

export type GoodsModel = {
  id: string;
  goodsType: number;
  name: string;
  description: string;
  bigImg: string;
  creatorName: string;
  status: number;
  content: string;
};
// export type GoodsSaveResultModel = BasicFetchResult<Number>;
